import request from '@/utils/request'

// 获取部门信息
export const getDepartmentsApi = () => request.get('/company/department')

// 获取部门负责人列表
export const getManagerListApi = () => request.get('/sys/user/simple')

// 新增部门
export const addDepsApi = data => request.post('/company/department', data)

// 获取部门详情
export const getDepsDetailApi = id => request.get(`/company/department/${id}`)

// 编辑部门
export const editDepsApi = data => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const delDeps = id => request.delete(`/company/department/${id}`)

